finallyExecute

public abstract JsPromise finallyExecute(JsPromiseHandler onFinally)

Registers a handler that will be invoked if the promise is settled (fulfilled/rejected) and returns a new promise.

The handler is called immediately if the promise is already settled.

Parameters

onFinally

a handler that is invoked if the promise is settled

See also

Throws

if the JavaScript promise is already disposed